package cate.game.server.configuration.dao.game;

import cate.game.db.mongo.MailBoxDao;
import cate.game.mail.po.MailBox;
import cate.game.server.configuration.dao.MgIdHexDao;

public class MgMailBoxDao extends MgIdHexDao<MailBox> implements MailBoxDao {

    @Override
    protected void writeIdHex(MailBox entity, String idHex) {
        entity.uid = idHex;
    }

    @Override
    protected String readIdHex(MailBox entity) {
        return entity.uid;
    }

    @Override
    protected Class<MailBox> getEntityClass() {
        return MailBox.class;
    }
}
